//
//  BaseModel.m
//  22-HomeWork
//
//  Created by GivenBmli on 16/8/13.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
}
- (id)valueForKey:(NSString *)key {
    return nil;
}
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
+ (instancetype)BaseModelDic:(NSDictionary *)dic {
    return [[self alloc] initWithDic:dic];
}

@end
